<!DOCTYPE html>
<html>

<head>
    <title>Example</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
    <style>
        tr>th {
            text-align: left;
            background: grey;
            color: white;
        }

        tr>th:only-of-type {
            text-align: right;
            background: lightgrey;
            color: grey;
        }
    </style>
</head>

<body>
    <!-- 自动同步最长的tr宽度-->
    <table>
        <!-- th--表头单元格 -->
        <tr>
            <th>Rank</th>
            <th>Name</th>
            <th>Color</th>
            <th>Size</th>
        </tr>
        <!-- tr--行 -->
        <tr>
            <!-- td--单元格 -->
            <th>Favorite:</th>
            <td>Apples</td>
            <td>Green</td>
            <td>Medium</td>
        </tr>
        <tr>
            <th>2nd Favorite:</th>
            <td>Oranges</td>
            <td>Orange</td>
            <td>Large</td>
        </tr>
        <tr>
            <th>3rd Favorite:</th>
            <td>Pomegranate</td>
            <td>A kind of greeny-red</td>
            <td>Varies from medium to large</td>
        </tr>
    </table>
</body>

</html>